package com.example.smartcitydemo.ui.smartbus.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder
import com.example.smartcitydemo.R
import com.example.smartcitydemo.bean.BusStationData
import com.example.smartcitydemo.databinding.RvSmartbusFirstItemBinding

/**
 * @PACKAGE_NAME: com.example.smartcity_jscs.ui.smartbus.adapter
 * @NAME: Caleb.F
 * @DATE: 2021/8/25 16:41
 * @Email: 1919796283@qq.com
 */
class SmartBusFirstAdapter :
    BaseQuickAdapter<BusStationData, BaseDataBindingHolder<RvSmartbusFirstItemBinding>>(
        R.layout.rv_smartbus_first_item
    ) {


    override fun convert(
        holder: BaseDataBindingHolder<RvSmartbusFirstItemBinding>,
        item: BusStationData
    ) {
        holder.dataBinding!!.tvSmartBusStationText.text = item.name
    }
}